package umacis.lwuitcomponent.property.controller;

import java.util.Enumeration;
import java.util.Vector;

import com.sun.lwuit.Button;
import com.sun.lwuit.Component;

public class TestPropertySetter {

	public TestPropertySetter() {
		Vector components = new Vector();
		Vector parents = new Vector();
		new UnSelectedStylePropertyController(components, parents);
		Enumeration e = components.elements();
		while (e.hasMoreElements()) {
			PropertyController propertyController = (PropertyController)e.nextElement();
			System.out.print("----Component: ");
			System.out.println(propertyController);
			System.out.print("My parents' properties: ");
			for (int i = 0; i < propertyController.myParents.length; i++) {
				System.out.print(propertyController.myParents[i] + " " );
				for (int j = 0; j < propertyController.myParents[i].propertyGetterSetter.length; j++) {
					System.out.print(propertyController.myParents[i].propertyGetterSetter[j] + " " );
					//propertyController.propertyGetterSetter[i].set(new Button(), new Parameters(false));
				}
				System.out.println();	
			}
			System.out.println();
			System.out.print("My Properties:");
			for (int i = 0; i < propertyController.propertyGetterSetter.length; i++) {
				System.out.print(propertyController.propertyGetterSetter[i] + " " );
				//propertyController.propertyGetterSetter[i].set(new Button(), new Parameters(false));
			}
			System.out.println();	
			
		}
		
		
		
		
	}

	
}
